package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户特征实体类
 */
@Data
@TableName("user_feature")
public class UserFeature {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private Integer userId;
    
    private Integer age;
    
    private String gender;
    
    private BigDecimal height;
    
    private BigDecimal weight;
    
    private String activityLevel;
    
    private String tastePreference;
    
    private String cookingSkill;
    
    private String dietRestriction;
    
    private String allergy;
    
    private String healthGoal;
    
    private BigDecimal bmi;
    
    private String preferredCuisine;
    
    private String preferredMealType;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private User user;
} 